-
-
Notifications
You must be signed in to change notification settings - Fork 379
[mcmc/base_adapter][NFC] add const and noexcept where appropriate #3350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
44673ee
to
1f827ce
Compare
allow querying the `adapting()` status of a const sampler, and mark loading/storing the bool member noexcept, after checking the relevant overrides in the derived `adapt_...` samplers.
09933bb
to
210fe90
Compare
Jenkins Console Log Machine informationNo LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focalCPU: G++: Clang: |
Hi, @kedartal: Thanks for submitting a PR. It looks OK, and I traced through stepsize adaptation to make sure the Before I merge, can you tell me what "[NFC]" means in the PR title? I tried looking it up on the web but couldn't find anything relevant. |
@bob-carpenter "No functional change" is how learnt it -- the commit does not contain any (intentional) changes to logic and so, in theory, no correctness implications. The idea is to allow skipping those when going over a set of commits to understand code changes. |
Thanks. I don't understand the line between functional change and not, but it doesn't matter for this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks---I tracked through all the functions and verified they actually were const
and/or noexcept
.
@bob-carpenter Thanks! |
Allow querying the
adapting()
status of a const sampler, and mark loading/storing the bool member noexceptCopyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Tal Kedar, K2DQ LLC
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: